﻿<Application x:Class="Application"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             StartupUri="MainWindow.xaml">
    <Application.Resources>
        <StreamGeometry x:Key="MidiFileIcon">
            M 35,18L 35,4L 11,4L 11,56L 49,56L 49,18L 35,18 Z M 10,3L 35.7071,3L 50,17.2929L 
            50,57L 10,57L 10,3 Z M 36,17L 48.2929,17L 36,4.70711L 36,17 Z M 37.4115,22.5365C 
            38.342,23.7205 39.0451,24.625 39.5208,25.25C 39.9965,25.875 40.2674,26.2431 
            40.3333,26.3542C 41.2222,27.8507 41.6667,29.3698 41.6667,30.9115C 41.6667,31.5573 
            41.6033,32.2656 41.4766,33.0365C 41.3498,33.8073 41.1979,34.5278 41.0208,35.1979C 
            40.8438,35.8681 40.6406,36.4262 40.4115,36.8724C 40.1823,37.3186 39.967,37.5417 
            39.7656,37.5417C 39.5885,37.5417 39.5,37.4531 39.5,37.276C 39.5,37.1649 
            39.566,36.9531 39.6979,36.6406C 40.3438,35.099 40.6667,33.3229 40.6667,31.3125C 
            40.6667,28.9688 39.2778,26.8368 36.5,24.9167C 36.0903,24.6458 35.7604,24.4323 
            35.5104,24.276C 35.2604,24.1198 35.0443,23.9922 34.862,23.8932C 34.6797,23.7943 
            34.4974,23.7274 34.3151,23.6927C 34.1328,23.658 33.9167,23.6181 33.6667,23.5729L 
            33.6667,43.0052C 33.6667,43.7656 33.4497,44.4974 33.0156,45.2005C 32.5816,45.9036 
            31.9922,46.5226 31.2474,47.0573C 30.5026,47.592 29.6745,48.0217 28.763,48.3464C 
            27.8516,48.671 26.9635,48.8333 26.099,48.8333C 25.033,48.8333 24.1441,48.5877 
            23.4323,48.0964C 22.7205,47.605 22.3646,46.8906 22.3646,45.9531C 22.3646,45.217 
            22.5981,44.4974 23.0651,43.7943C 23.5321,43.0911 24.1319,42.4661 24.8646,41.9193C 
            25.5972,41.3724 26.4141,40.9323 27.3151,40.599C 28.2161,40.2656 29.099,40.099 
            29.9635,40.099C 31.2969,40.099 32.309,40.4427 33,41.1302L 33,15.1667L 
            33.5,15.1667C 33.941,16.1493 34.3056,16.9696 34.5938,17.6276C 34.8819,18.2856 
            35.125,18.8212 35.3229,19.2344C 35.5208,19.6476 35.6866,19.9887 35.8203,20.2578C 
            35.954,20.5269 36.0929,20.7674 36.237,20.9792C 36.3811,21.191 36.5417,21.4141 
            36.7188,21.6484C 36.8958,21.8828 37.1267,22.1788 37.4115,22.5365 Z
        </StreamGeometry>
        <ControlTemplate x:Key="MidiFileButton" TargetType="{x:Type Button}">
            <Grid Background="Transparent">
                <ContentPresenter x:Name="presenter" Opacity="0.5" />
            </Grid>
            <ControlTemplate.Triggers>
                <Trigger Property="IsMouseOver" Value="True">
                    <Setter TargetName="presenter" Property="Opacity" Value="1" />
                </Trigger>
                <Trigger Property="IsPressed" Value="True">
                    <Setter TargetName="presenter" Property="Opacity" Value="0.75" />
                </Trigger>
            </ControlTemplate.Triggers>
        </ControlTemplate>
    </Application.Resources>
</Application>
